package cn.edu.nenu.contract.dto;

/**
 * @author Kaginux
 * @version 6:28:52 PM May 1, 2011
 */
public class WorkTaskDTO extends TaskDTO {

	private static final long serialVersionUID = 1L;

	private ITADate startDate;
	private int workHours;

	public WorkTaskDTO(int id, String title, String description,
			boolean isProject, int ownerId, String ownerName,
			int parentProjectId, String parentProjectName, ITADate startDate,
			int workHours) {
		super(id, title, description, isProject, ownerId, ownerName,
				parentProjectId, parentProjectName);
		this.startDate = startDate;
		this.workHours = workHours;
	}

	public ITADate getStartDate() {
		return startDate;
	}

	public int getWorkHours() {
		return workHours;
	}

	public void setStartDate(ITADate startDate) {
		this.startDate = startDate;
	}

	public void setWorkHours(int workHours) {
		this.workHours = workHours;
	}

	@Override
	public String toString() {
		return "WorkTaskDTO [startDate=" + startDate + ", workHours="
				+ workHours + "]";
	}

}
